/* USER CODE BEGIN Header */
/**
  ******************************************************************************
  * @file           : main.h
  * @brief          : Header for main.c file.
  *                   This file contains the common defines of the application.
  ******************************************************************************
  * @attention
  *
  * <h2><center>&copy; Copyright (c) 2020 STMicroelectronics.
  * All rights reserved.</center></h2>
  *
  * This software component is licensed by ST under Ultimate Liberty license
  * SLA0044, the "License"; You may not use this file except in compliance with
  * the License. You may obtain a copy of the License at:
  *                             www.st.com/SLA0044
  *
  ******************************************************************************
  */
/* USER CODE END Header */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __MAIN_H
#define __MAIN_H

#ifdef __cplusplus
extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "stm32f4xx_hal.h"

/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */

/* USER CODE END Includes */

/* Exported types ------------------------------------------------------------*/
/* USER CODE BEGIN ET */

/* USER CODE END ET */

/* Exported constants --------------------------------------------------------*/
/* USER CODE BEGIN EC */

/* USER CODE END EC */

/* Exported macro ------------------------------------------------------------*/
/* USER CODE BEGIN EM */

/* USER CODE END EM */

/* Exported functions prototypes ---------------------------------------------*/
void Error_Handler(void);

/* USER CODE BEGIN EFP */

/* USER CODE END EFP */

/* Private defines -----------------------------------------------------------*/
#define Left_Main_Rudder_Neg_Pin GPIO_PIN_3
#define Left_Main_Rudder_Neg_GPIO_Port GPIOE
#define Left_Main_Rudder_Pos_Pin GPIO_PIN_4
#define Left_Main_Rudder_Pos_GPIO_Port GPIOE
#define Right_Main_Rudder_Neg_Pin GPIO_PIN_5
#define Right_Main_Rudder_Neg_GPIO_Port GPIOE
#define Right_Main_Rudder_Pos_Pin GPIO_PIN_6
#define Right_Main_Rudder_Pos_GPIO_Port GPIOE
#define Left_Wing_Rudder_Neg_Pin GPIO_PIN_13
#define Left_Wing_Rudder_Neg_GPIO_Port GPIOC
#define Left_Wing_Rudder_Pos_Pin GPIO_PIN_0
#define Left_Wing_Rudder_Pos_GPIO_Port GPIOF
#define Right_Wing_Rudder_Neg_Pin GPIO_PIN_1
#define Right_Wing_Rudder_Neg_GPIO_Port GPIOF
#define Right_Wing_Rudder_Pos_Pin GPIO_PIN_2
#define Right_Wing_Rudder_Pos_GPIO_Port GPIOF
#define Left_Main_Fin_Neg_Pin GPIO_PIN_3
#define Left_Main_Fin_Neg_GPIO_Port GPIOF
#define Left_Main_Fin_Pos_Pin GPIO_PIN_4
#define Left_Main_Fin_Pos_GPIO_Port GPIOF
#define Right_Main_Fin_Neg_Pin GPIO_PIN_5
#define Right_Main_Fin_Neg_GPIO_Port GPIOF
#define Right_Main_Fin_Pos_Pin GPIO_PIN_6
#define Right_Main_Fin_Pos_GPIO_Port GPIOF
#define Left_Wing_Fin_Neg_Pin GPIO_PIN_7
#define Left_Wing_Fin_Neg_GPIO_Port GPIOF
#define Left_Wing_Fin_Pos_Pin GPIO_PIN_8
#define Left_Wing_Fin_Pos_GPIO_Port GPIOF
#define Right_Wing_Fin_Neg_Pin GPIO_PIN_9
#define Right_Wing_Fin_Neg_GPIO_Port GPIOF
#define Right_Wing_Fin_Pos_Pin GPIO_PIN_10
#define Right_Wing_Fin_Pos_GPIO_Port GPIOF
#define Left_Main_Rudder_Sign_Pin GPIO_PIN_0
#define Left_Main_Rudder_Sign_GPIO_Port GPIOC
#define Right_Main_Rudder_Sign_Pin GPIO_PIN_1
#define Right_Main_Rudder_Sign_GPIO_Port GPIOC
#define Left_Wing_Rudder_Sign_Pin GPIO_PIN_2
#define Left_Wing_Rudder_Sign_GPIO_Port GPIOC
#define Right_Wing_Rudder_Sign_Pin GPIO_PIN_3
#define Right_Wing_Rudder_Sign_GPIO_Port GPIOC
#define Left_Main_Rudder_Pul_Pin GPIO_PIN_0
#define Left_Main_Rudder_Pul_GPIO_Port GPIOA
#define Right_Main_Rudder_Pul_Pin GPIO_PIN_1
#define Right_Main_Rudder_Pul_GPIO_Port GPIOA
#define Left_Wing_Rudder_Pul_Pin GPIO_PIN_2
#define Left_Wing_Rudder_Pul_GPIO_Port GPIOA
#define Right_Wing_Rudder_Pul_Pin GPIO_PIN_3
#define Right_Wing_Rudder_Pul_GPIO_Port GPIOA
#define Left_Main_Fin_Sign_Pin GPIO_PIN_4
#define Left_Main_Fin_Sign_GPIO_Port GPIOA
#define Right_Main_Fin_Sign_Pin GPIO_PIN_5
#define Right_Main_Fin_Sign_GPIO_Port GPIOA
#define Left_Main_Fin_Pul_Pin GPIO_PIN_6
#define Left_Main_Fin_Pul_GPIO_Port GPIOA
#define Right_Main_Fin_Pul_Pin GPIO_PIN_7
#define Right_Main_Fin_Pul_GPIO_Port GPIOA
#define Left_Wing_Fin_Sign_Pin GPIO_PIN_4
#define Left_Wing_Fin_Sign_GPIO_Port GPIOC
#define Right_Wing_Fin_Sign_Pin GPIO_PIN_5
#define Right_Wing_Fin_Sign_GPIO_Port GPIOC
#define Left_Wing_Fin_Pul_Pin GPIO_PIN_0
#define Left_Wing_Fin_Pul_GPIO_Port GPIOB
#define Right_Wing_Fin_Pul_Pin GPIO_PIN_1
#define Right_Wing_Fin_Pul_GPIO_Port GPIOB
#define Left_Fin_Convergence_Neg_Pin GPIO_PIN_11
#define Left_Fin_Convergence_Neg_GPIO_Port GPIOF
#define Left_Fin_Convergence_Pos_Pin GPIO_PIN_12
#define Left_Fin_Convergence_Pos_GPIO_Port GPIOF
#define Right_Fin_Convergence_Neg_Pin GPIO_PIN_13
#define Right_Fin_Convergence_Neg_GPIO_Port GPIOF
#define Right_Fin_Convergence_Pos_Pin GPIO_PIN_14
#define Right_Fin_Convergence_Pos_GPIO_Port GPIOF
#define Left_Pulp_Neg_Pin GPIO_PIN_15
#define Left_Pulp_Neg_GPIO_Port GPIOF
#define Left_Pulp_Pos_Pin GPIO_PIN_0
#define Left_Pulp_Pos_GPIO_Port GPIOG
#define Right_Pulp_Neg_Pin GPIO_PIN_1
#define Right_Pulp_Neg_GPIO_Port GPIOG
#define Right_Pulp_Pos_Pin GPIO_PIN_7
#define Right_Pulp_Pos_GPIO_Port GPIOE
#define Left_Fin_Convergence_Sign_Pin GPIO_PIN_8
#define Left_Fin_Convergence_Sign_GPIO_Port GPIOE
#define Left_Fin_Convergence_Pul_Pin GPIO_PIN_9
#define Left_Fin_Convergence_Pul_GPIO_Port GPIOE
#define Right_Fin_Convergence_Sign_Pin GPIO_PIN_10
#define Right_Fin_Convergence_Sign_GPIO_Port GPIOE
#define Right_Fin_Convergence_Pul_Pin GPIO_PIN_11
#define Right_Fin_Convergence_Pul_GPIO_Port GPIOE
#define Left_Pulp_Sign_Pin GPIO_PIN_12
#define Left_Pulp_Sign_GPIO_Port GPIOE
#define Left_Pulp_Pul_Pin GPIO_PIN_13
#define Left_Pulp_Pul_GPIO_Port GPIOE
#define Right_Pulp_Pul_Pin GPIO_PIN_14
#define Right_Pulp_Pul_GPIO_Port GPIOE
#define Right_Pulp_Sign_Pin GPIO_PIN_15
#define Right_Pulp_Sign_GPIO_Port GPIOE
#define Water_Tank_Pul_Pin GPIO_PIN_10
#define Water_Tank_Pul_GPIO_Port GPIOB
#define Spare_Pin GPIO_PIN_11
#define Spare_GPIO_Port GPIOB
#define Water_Tank_Sign_Pin GPIO_PIN_12
#define Water_Tank_Sign_GPIO_Port GPIOB
#define SpareB13_Pin GPIO_PIN_13
#define SpareB13_GPIO_Port GPIOB
#define O_13_Pin GPIO_PIN_14
#define O_13_GPIO_Port GPIOB
#define O_14_Pin GPIO_PIN_15
#define O_14_GPIO_Port GPIOB
#define O_15_Pin GPIO_PIN_8
#define O_15_GPIO_Port GPIOD
#define O_16_Pin GPIO_PIN_9
#define O_16_GPIO_Port GPIOD
#define T4C1S_Pin GPIO_PIN_10
#define T4C1S_GPIO_Port GPIOD
#define T4C2S_Pin GPIO_PIN_11
#define T4C2S_GPIO_Port GPIOD
#define T4C3S_Pin GPIO_PIN_2
#define T4C3S_GPIO_Port GPIOG
#define T4C4S_Pin GPIO_PIN_3
#define T4C4S_GPIO_Port GPIOG
#define O_12_Pin GPIO_PIN_4
#define O_12_GPIO_Port GPIOG
#define O_11_Pin GPIO_PIN_5
#define O_11_GPIO_Port GPIOG
#define O_10_Pin GPIO_PIN_6
#define O_10_GPIO_Port GPIOG
#define O_9_Pin GPIO_PIN_7
#define O_9_GPIO_Port GPIOG
#define RD_Pin GPIO_PIN_8
#define RD_GPIO_Port GPIOC
#define DA_LDAC_A_Pin GPIO_PIN_15
#define DA_LDAC_A_GPIO_Port GPIOA
#define DA_CLR_A_Pin GPIO_PIN_0
#define DA_CLR_A_GPIO_Port GPIOD
#define SPI_SYNC_A_Pin GPIO_PIN_1
#define SPI_SYNC_A_GPIO_Port GPIOD
#define DA_CLR_B_Pin GPIO_PIN_2
#define DA_CLR_B_GPIO_Port GPIOD
#define DA_LDAC_B_Pin GPIO_PIN_3
#define DA_LDAC_B_GPIO_Port GPIOD
#define SPI_SYNC_B_Pin GPIO_PIN_4
#define SPI_SYNC_B_GPIO_Port GPIOD
#define O_8_Pin GPIO_PIN_9
#define O_8_GPIO_Port GPIOG
#define O_7_Pin GPIO_PIN_10
#define O_7_GPIO_Port GPIOG
#define O_6_Pin GPIO_PIN_11
#define O_6_GPIO_Port GPIOG
#define O_5_Pin GPIO_PIN_12
#define O_5_GPIO_Port GPIOG
#define O_4_Pin GPIO_PIN_13
#define O_4_GPIO_Port GPIOG
#define O_3_Pin GPIO_PIN_14
#define O_3_GPIO_Port GPIOG
#define O_2_Pin GPIO_PIN_15
#define O_2_GPIO_Port GPIOG
#define O_1_Pin GPIO_PIN_3
#define O_1_GPIO_Port GPIOB
#define Water_Tank_Neg_Pin GPIO_PIN_4
#define Water_Tank_Neg_GPIO_Port GPIOB
#define Water_Tank_Pos_Pin GPIO_PIN_5
#define Water_Tank_Pos_GPIO_Port GPIOB
#define IND_6_Pin GPIO_PIN_6
#define IND_6_GPIO_Port GPIOB
#define IND_5_Pin GPIO_PIN_7
#define IND_5_GPIO_Port GPIOB
#define IND_4_Pin GPIO_PIN_8
#define IND_4_GPIO_Port GPIOB
#define IND_3_Pin GPIO_PIN_9
#define IND_3_GPIO_Port GPIOB
#define IND_2_Pin GPIO_PIN_0
#define IND_2_GPIO_Port GPIOE
#define IND_1_Pin GPIO_PIN_1
#define IND_1_GPIO_Port GPIOE
/* USER CODE BEGIN Private defines */

/* USER CODE END Private defines */

#ifdef __cplusplus
}
#endif

#endif /* __MAIN_H */

/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
